package com.googlecode.imanager.swing.form;

import javax.swing.JCheckBox;

import com.googlecode.imanager.client.bridge.form.ICheckBox;
import com.googlecode.imanager.client.form.CheckBox;
import com.googlecode.imanager.core.base.BridgeApplication;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public class SwingCheckBox extends SwingInputCheck implements ICheckBox {

    public SwingCheckBox(BridgeApplication bridge, CheckBox source) {
        super(bridge, source);
    }

    @Override
    protected JCheckBox createTarget() {
        return new JCheckBox();
    }

    @Override
    public JCheckBox getTarget(){
        return (JCheckBox) target;
    }
    
    @Override
    public CheckBox getSource() {
        return (CheckBox) source;
    }

}
